package osirix.ce.enumerados;

public enum ETipoInfractor {

	CONDUCTOR("1"),
	PEATON("2"),
	PASAJERO("3");	
	
	private String infractor;
	
	private ETipoInfractor(final String infractor){
		this.infractor = infractor;
	}
	
	public String getInfractor(){
		return this.infractor;
	}
	
	public static ETipoInfractor fromString(final String infractor) {
        for (ETipoInfractor l : values()) {
                if (infractor.equals(l.toString())) {
                        return l;
                }
        }
        return null;
	}
	
	public String shortCode(){
		return infractor;
	}
}
